package com.jhy.suixianglu.daima20230115;

public class ReverseLeftWords {
    public static String reverseLeftWords(String s, int n) {
      /*  String substring1 = s.substring(n);
        StringBuilder stringBuilder = new StringBuilder(substring1);
        String substring = s.substring(0, n);
        System.out.println(substring);
        StringBuilder append = stringBuilder.append(substring);
        return append.toString();*/
        return s.substring(n)+s.substring(0,n);

    }

    public static void main(String[] args) {
        String jhywyc = reverseLeftWords("jhywyc", 2);
        System.out.println(jhywyc);
    }
}
